test in app builder encouraged in server card#1666
test in app builder encouraged in server card#1666ignaciojimenezr wants to merge 7 commits intomainfrom
Conversation
|
🚅 Environment inspector-pr-1666 in triumphant-alignment has no services deployed. 1 service not affected by this PR
|
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
✅ Files skipped from review due to trivial changes (1)
🚧 Files skipped from review as they are similar to previous changes (2)
WalkthroughThis PR introduces a new hook, Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
mcpjam-inspector/client/src/hooks/__tests__/use-ui-app-servers.test.tsx (1)
25-42: Migrate to the sharedcreateServer()factory fromclient/src/test/factories.ts.The test defines a local
createServer()that duplicates the shared factory. Migrate to the shared factory and passnameas an override property rather than a positional parameter. Alternatively, usecreateConnectedServer()for test-specific defaults. This ensures fixture consistency across the codebase.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@mcpjam-inspector/client/src/hooks/__tests__/use-ui-app-servers.test.tsx` around lines 25 - 42, Replace the local createServer factory with the shared factory: remove the local function createServer and import the shared createServer from the test factories file, calling it with an overrides object that includes name (e.g. createServer({ name, ...otherOverrides })) instead of a positional name arg; for tests that need the connected defaults use the shared createConnectedServer helper (or pass connection-related overrides) so fixtures remain consistent with ServerWithName and existing test factories.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In `@mcpjam-inspector/client/src/hooks/__tests__/use-ui-app-servers.test.tsx`:
- Around line 25-42: Replace the local createServer factory with the shared
factory: remove the local function createServer and import the shared
createServer from the test factories file, calling it with an overrides object
that includes name (e.g. createServer({ name, ...otherOverrides })) instead of a
positional name arg; for tests that need the connected defaults use the shared
createConnectedServer helper (or pass connection-related overrides) so fixtures
remain consistent with ServerWithName and existing test factories.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: df8211c0-6c1f-4f59-8673-8790fe69e23b
📒 Files selected for processing (8)
mcpjam-inspector/client/src/App.tsxmcpjam-inspector/client/src/components/ServersTab.tsxmcpjam-inspector/client/src/components/connection/ServerConnectionCard.tsxmcpjam-inspector/client/src/components/connection/__tests__/ServerConnectionCard.test.tsxmcpjam-inspector/client/src/components/mcp-sidebar.tsxmcpjam-inspector/client/src/components/sidebar/nav-main.tsxmcpjam-inspector/client/src/hooks/__tests__/use-ui-app-servers.test.tsxmcpjam-inspector/client/src/hooks/use-ui-app-servers.ts
| className="inline-flex items-center gap-1.5 rounded-full border border-border/70 bg-muted/30 px-2 py-0.5 text-[11px] text-foreground transition-colors hover:bg-accent/60 cursor-pointer" | ||
| > | ||
| <Rocket className="h-3 w-3" /> | ||
| <span>Test in app builder</span> |
There was a problem hiding this comment.
| <span>Test in app builder</span> | |
| <span>Test in App Builder</span> |
Screen.Recording.2026-03-24.at.10.33.32.PM.mov